package datasource.zhuocan.cn.c3p0;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

/**
 * 版权：卓灿教育集团 版权所有
 * author :赵航
 *
 * @e-mail: zhaohangcn@gmail.com
 * time：2021/2/17
 * describe ：c3p0的演示
 */
public class C3p0Dome1 {

    public static void main(String[] args) throws SQLException {

        DataSource ds = new ComboPooledDataSource();
        Connection connection = ds.getConnection();

        System.out.println(connection );
    }
}
